# UltiSnips markdown snippets

# markdown format
snippet -[ "checkbox" b
- [${1: }] $0
endsnippet

snippet YAML "YAML format" b
---
tags: $1
aliases: $2
---

$0
endsnippet

snippet fig "fig link" b
![](attachments/$1)
endsnippet

######## math #######
snippet __  "subscript" i
_{$1}$0
endsnippet

snippet BEV "evironment" b
\begin{$1}
	$0
\end{$1}
endsnippet

snippet BEQ "math environment" b
\$\$
$1
\$\$
$0
endsnippet

snippet $$ "inline math envorinment" i
 \$$1\$ $0
endsnippet

snippet rm "mathrm format" i
\mathrm{$1}$0
endsnippet

snippet / "frac" i
\frac
{$1}
{$2}
endsnippet

# chemical formula
snippet ce "mhchem" i
\ce{$1}$0
endsnippet

######## Unit #######
snippet TgC "Unit" i
\,\mathrm{Tg\,C}
endsnippet

snippet TY "unit" i
\, \mathrm{Tg\,C\,yr^{-1}}
endsnippet

snippet GMY "unit" i
\,\mathrm{g\,C\,m^{-2},yr^{-1}}
endsnippet
